package com.tengfei.main.plan.domain.export;

import com.alibaba.excel.annotation.ExcelProperty;
import com.tengfei.common.annotation.ExcelDictFormat;
import com.tengfei.common.convert.ExcelDictConvert;
import com.tengfei.common.utils.poi.select.ExcelSelected;
import com.tengfei.main.user.service.select.DeptSelectList;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;

/**
 * @author feige
 * @version v1.0
 * @date 2022-10-19-11:58
 * @description
 */

@Data
@ApiModel("导出学习计划进度视图表")
public class StudyMapExportVo implements Serializable {


    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户id")
    private Long userId;


    /**
     * 用户账号
     */
    @ExcelProperty(value = "用户名")
    private String userName;

    /**
     * 姓名
     */
    @ExcelProperty(value = "姓名")
    private String name;

    /**
     * 电话号码
     */
    @ExcelProperty(value = "电话号码")
    private String phonenumber;

    /**
     * 性别
     */
    @ExcelProperty(value = "性别", converter = ExcelDictConvert.class, index = 4)
    @ExcelSelected(source = {"男", "女", "保密"})
    @ExcelDictFormat(dictType = "sys_user_sex")
    private Integer sex;

    /**
     * 部门名称
     */
    @ExcelProperty(value = "部门", index = 5)
    @ExcelSelected(sourceClass = DeptSelectList.class)
    private String deptName;

    /**
     * 学习计划进度
     */
    @ExcelProperty(value = "学习进度/%")
    private Double progress;


}
